package cn.jiyun.pojoday14;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.ToString;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * @Author: 小周
 * @Package: cn.jiyun.pojoday14
 * @Project: p11_parent
 * @name: EmpDTO
 * @Date: 2023/8/11 11:45
 * @Filename: EmpDTO
 */
@Data
@ToString
public class EmpDTO implements Serializable {
    private String status;
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "Asia/Shanghai")
    private Date startdate;
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "Asia/Shanghai")
    private Date enddate;
    private Integer roleId;
    private String ename;
}
